package homework03;

import java.util.Scanner;

public class Test01 {
    public static void main(String[] args) {
        BankAccount bankAccount = new BankAccount();
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入存款金额:");
        double v = scanner.nextDouble();
        bankAccount.deposit(v);
        System.out.println("请输入取款金额:");
        double v1 = scanner.nextDouble();
        bankAccount.Withdrawal(v1);
        System.out.println("当前余额为:" + bankAccount.getBalance());


    }
}
